package com.yanqu.road.server.channelserver.cmd.activity.tonbing;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.cmd.CrossChannelCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.scene.CrossSceneMgr;
import com.yanqu.road.server.protocol.ChannelProtocol;

@Cmd(code = ChannelProtocol.N_TON_BING_QUIT_BATTLEFIELD, desc = "")
public class ChannelTonBingQuitBattlefieldCmd extends CrossChannelCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        //todo 只有退出，没有进入,跨域统兵也没用到
        CrossSceneMgr.quitScene(packet.getPlayerId(), System.currentTimeMillis());
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }
}
